public class Obstacle{
    private Position position;

    public Obstacle(Position position) {
        this.position = position;
    }

    public String toString() {
        return String.format("  This is obstacle, its position is %s", position);
    }

    public CreaturesType getType() {
        return CreaturesType.Obstacle;
    }

    public Position getPosition() {
        return position;
    }
}
